import { Controller, Get, Post } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';

@Controller('looks')
@ApiTags('测试')
export class LooksController {
  @Get('aa')
  @ApiOperation({ summary: '这是一段描述' })
  index() {
    return [{ content: '测试1' }, { content: '测试2' }];
  }

  @Post()
  @ApiOperation({ summary: '这是一段描述2' })
  create() {
    return {
      success: true,
    };
  }
}
